from django.db import models

class Patent(models.Model):
    """专利模型"""
    title = models.CharField(max_length=200, verbose_name='专利名称')
    application_number = models.CharField(max_length=50, unique=True, verbose_name='申请号')
    application_date = models.DateField(verbose_name='申请日期')
    applicant = models.CharField(max_length=200, verbose_name='申请人')
    applicant_province = models.CharField(max_length=50, verbose_name='申请人所在省份')
    
    class Meta:
        verbose_name = '专利'
        verbose_name_plural = verbose_name
        db_table = 'patent'
        
    def __str__(self):
        return self.title 